package com.example.library.banner;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.MotionEvent;

/**
 * 作者：zwk
 * 时间：on 2019/3/14 20:25
 * 功能：自定义的RecycleView，处理滑动冲突事件，主要用于在BannerLayout中替换recycleView控件
 */
public class MyRecycleView extends RecyclerView {
	public MyRecycleView(Context context) {
		super(context);
	}

	@Override
	public boolean onInterceptTouchEvent(MotionEvent e) {
		getParent().requestDisallowInterceptTouchEvent(true);
		return super.onInterceptTouchEvent(e);
	}
}
